/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page, TreeDataModel } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface pmWater extends BasicModel<pmWater> {
  projectno?: string; // 项目编号
  projectname?: string; // 项目名称
  appointcode?: string; // 预约申请编号
  firstbusinessname?: string; // 业务类型
  secondbusinessname?: string; // 业务类型2
  thirdbusinessname?: string; // 业务类型3
  projectaddress?: string; // 项目安装地址
  applybodytype?: number; // 申请主体类型
  applybodyname?: string; // 申请主体名称
  cardno?: string; // 磁卡号
  certtype?: number; // 证件类型
  certno?: string; // 证件号码
  contacts?: string; // 联系人
  mobile?: string; // 联系人手机
  telphone?: string; // 联系人座机
  organizationalcode?: string; // 组织机构代码
  planninglicensecode?: string; // 规划许可证编码
  meetingcode?: string; // 会议纪要编码
  registrationcertificate?: string; // 项目登记备案证书
  ismediumandsmall?: number; // 是否中小微外资企业
  isinvolveoutsidelines?: number; // 是否涉及外线
  islowriskorcommon?: number; // 风险类型
  isplatformproject?: number; // 是否平台下发工程
  platformprojectcode?: string; // 平台下发工程编号
  monitorinfo?: string; // 监测表信息
  ispost?: number; // 是否需邮寄
  optimalchannel?: number; // 缴费优选渠道
  createtime?: string; // 工程创建时间
  applyacceptor?: string; // 报装员名字
  projectbuildcategory?: string; // 工程施工分类编码
  projecttermlimit?: string; // 预计工程工期
  budgetamount?: number; // 预算总金额
  contractamount?: number; // 合同总金额
  lumpamount?: number; // 包干价
  istwosupplyequipment?: number; // 是否涉及二供设备
  isneedcontract?: number; // 是否需签合同
  isneedoaaudit?: number; // 合同是否需特殊审批
  needoaauditremark?: string; // 合同特殊审批备注
  tendertype?: number; // 招标类型
  isbiddingconstruct?: number; // 是否需招标施工单位
  isbiddingsecondary?: number; // 是否需招标二供企业
  bidconstructname?: string; // 中标施工单位名称
  bidsecondaryname?: string; // 中标二供设备企业名称
  region?: string; // 区域
  applicationtype?: string; // 申请单位类型
  applicationname?: string; // 申请单位名称
  classificationlabel?: string; // 分类标签
  uniformsocialcreditcode?: string; // 社会信用统一编码
  oanum?: string; // OA编号
  oafile?: string; // OA图片
  termination?: number; // 终止
  isspecial?: number; // 是否特殊项目
  projectstate?: string; // projectstate
  abolish?: number; // abolish
  projecttype?: string; // 项目特征
  usercode?: string; // usercode
  username?: string; // username
  trueprojecttermlimit?: string; // 工期
  oldid?: string; // oldid
  ispayscpayment?: string; // ispayscpayment
  ismidcheck?: number; // ismidcheck
  subtaskstatus?: number; // subtaskstatus
  safetycivilizationamount?: number; // safetycivilizationamount
  num?: number; // num
  iswatersupply?: number; // iswatersupply
  watersupplytime?: string; // watersupplytime
  settlementdate?: string; // settlementdate
  states?: string; // 项目状态
  errorcontent?: string; // errorcontent
  recruitment?: string; // recruitment
}

export const pmWaterList = (params?: pmWater | any) =>
  defHttp.get<pmWater>({
    url: adminPath + '/proj/info/pmWater/list',
    params,
  });

export const pmWaterListData = (params?: pmWater | any) =>
  defHttp.post<Page<pmWater>>({
    url: adminPath + '/proj/info/pmProjectinformation/pushBzListData',
    params,
  });

export const pmWaterSave = (params?: any, data?: pmWater | any) =>
  defHttp.postJson<pmWater>({
    url: adminPath + '/proj/info/pmProjectinformation/pushBz',
    params,
    data,
  });

export const pmWaterView = (params?: pmWater | any) =>
  defHttp.get<pmWater>({
    url: adminPath + '/proj/info/pmProjectinformation/viewBzKhQty',
    params,
  });
